42627a464eac6fd373ab45cf8829640c57181ff9,hazelcast/src/main/java/com/hazelcast/query/Index.java,Index,setIndexType,#Object#,144
Before Change
if (returnType == -1) {
if (expression instanceof Predicates.GetExpressionImpl) {
Predicates.GetExpressionImpl ex = (Predicates.GetExpressionImpl) expression;
returnType = getIndexType(ex.getter.getReturnType());
} else {
if (extractedValue == null) throw new RuntimeException("Indexed value cannot be null!");
returnType = getIndexType(extractedValue.getClass());
After Change
if (returnType == -1) {
if (expression instanceof Predicates.GetExpressionImpl) {
Predicates.GetExpressionImpl ex = (Predicates.GetExpressionImpl) expression;
setReturnType(getIndexType(ex.getter.getReturnType()));
} else {
if (extractedValue == null) throw new RuntimeException("Indexed value cannot be null!");
setReturnType(getIndexType(extractedValue.getClass()));